

package cn.shengchao.examstar.me.course.acl.ports.clients;

import cn.shengchao.examstar.me.collect.acl.ports.message.CourseDto;
import cn.shengchao.examstar.product.ohs.local.message.KnowledgeNodeDto;
import cn.shengchao.examstar.product.ohs.local.message.ProductDto;

import java.util.List;
import java.util.Map;

public interface IProductClient {
    Map<Long, String> getProductName(List<Long> knowledgeNodeIds);
    List<KnowledgeNodeDto> getKnowledgeListByNewOrder(Long courseId, String searchName, boolean isLesson);
    List<KnowledgeNodeDto> getKnowledgeList(Long courseId, String searchName, boolean isLesson);

    KnowledgeNodeDto getKnowledgeNodeDto(Long knowledgeNodeId);

    ProductDto getProduct(Long productId);

    List<CourseDto> getProductList(List<Long> array);

    /**
     * 获取免费解锁次数
     */
    Long getFreeUnlockSum(Long id);

    /**
     * 是否k12
     */
    boolean isK12(Long courseId);

}
